


#include "sample_isp.h"





int main()
{

    int ret = -1;

	printf("**********************************************************************\n");
	printf("* sgks mpi sample isp svn version: %s  build time: %s  \r\n",SVNREVISION,TIMESTAMP);
	printf("**********************************************************************\n");

    ret = sgks_mpi_sample_SysInit(SGKS_DSP_ENCODE_MODE);
    if (ret != SGKS_SUCCESS)
        return ret;

    ret = sgks_mpi_sample_VinInit();
    if (ret != SGKS_SUCCESS)
        return ret;

    ret = sgks_mpi_sample_IspInit();
    if (ret != SGKS_SUCCESS)
        return ret;
    
    ret = sgks_mpi_isp_sample_VoutInit(SGKS_VO_SRC_ENC, SGKS_VO_SRC_ENC);
    if (ret != SGKS_SUCCESS)
        return ret;
    
    ret =  sgks_mpi_sys_Start();
    if (ret != SGKS_SUCCESS)
        return ret;

    ////////////////////////////////////////////////////////////
    // isp api test

    int Saturation = 0;

    sgks_mpi_isp_SetSaturation(100);    
    
    sgks_mpi_isp_GetSaturation(&Saturation);

    printf("Saturation:%d\n", Saturation);





    ////////////////////////////////////////////////////////////

#if 1
    while(1)
    {
        sleep(3);
    }
#endif

    return SGKS_SUCCESS;


}




